<!DOCTYPE html>
<form>
    <div id="target">
        <script>
            var d = document.getElementById('target');
            d.parentNode.removeChild(d);
        </script>
        <img name=myimage>
    </div>
</form>
<script src="../../resources/js-test.js"></script>
<script>
description('Image elements should not be associated with forms in different trees');
shouldBeUndefined('document.forms[0].myimage');
</script>
